package com.ruoyi.project.system.domain;

import java.math.BigDecimal;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.Data;

/**
 * 收入对象 sm_income
 */
@Data
public class SmIncome extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Integer id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Integer userId;

    /**
     * 收入类型
     */
    @Excel(name = "收入类型")
    private String type;

    /**
     * 收入金额
     */
    @Excel(name = "收入金额")
    private BigDecimal amount;

    /**
     * 当前状态
     */
    @Excel(name = "当前状态")
    private String status;

    /**
     * 关联订单
     */
    @Excel(name = "关联订单")
    private String outId;

    /**
     * 提现单号
     */
    @Excel(name = "提现单号")
    private String extractId;

    public SmIncome() {
    }

    public SmIncome(String outId) {
        this.outId = outId;
    }

    public SmIncome(Integer userId, String status, String type,
                    BigDecimal amount, String outId, String remark) {
        this.userId = userId;
        this.status = status;
        this.type = type;
        this.amount = amount;
        this.outId = outId;
        this.setRemark(remark);
    }
}
